﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.WorryFreeMoveSuiteConfig;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Agent.AgentAreaRecord;
using BCDto.TMS.WorryFreeMoveSuiteConfig;
using BCEntity.TMS.WorryFreeMoveSuiteConfig;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.WorryFreeMoveSuiteConfig
{
	/// <summary>
	/// 无忧搬家套餐配置
	/// </summary>
	public interface IWorryFreeMoveSuiteConfigService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		bool Exists(int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 添加无忧搬家套餐配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="requestDto">无忧搬家套餐配置信息</param>
		WorryFreeMoveSuiteConfigDto Add(AdminDto adminDto, WorryFreeMoveSuiteConfigRequestDto requestDto);
		/// <summary>
		/// 更新无忧搬家套餐配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="putDto">无忧搬家套餐配置信息</param>
		WorryFreeMoveSuiteConfigDto Update(AdminDto adminDto, WorryFreeMoveSuiteConfigPutDto putDto);
		/// <summary>
		/// 删除无忧搬家套餐配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		bool Delete(AdminDto adminDto, int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 获取无忧搬家套餐配置
		/// </summary>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		WorryFreeMoveSuiteConfigDto Get(int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 获取无忧搬家套餐配置列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="countyCode">区县编码</param>
		IEnumerable<WorryFreeMoveSuiteConfigViewDto> GetList(long agentRecordId, string countyCode);
		/// <summary>
		/// 获取有无忧搬家套餐配置的代理商区域列表
		/// </summary>
		/// <returns></returns>
		IEnumerable<AgentAreaTreeDto> GetAgenAreaTreeList();
		/// <summary>
		/// 获取无忧搬家套餐配置分页列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="suiteName">套餐名称</param>
		/// <param name="provinceCode">省份编码</param>
		/// <param name="cityCode">城市编码</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">无忧搬家套餐配置每页数据条数</param>
		PageableList<WorryFreeMoveSuiteConfigDto> Query(long? agentRecordId, string suiteName, string provinceCode, string cityCode, string countyCode, bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用无忧搬家套餐配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		bool Enabled(AdminDto adminDto, int worryFreeMoveSuiteConfigId);
		/// <summary>
		/// 禁用无忧搬家套餐配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="worryFreeMoveSuiteConfigId">无忧搬家套餐配置Id</param>
		bool Disabled(AdminDto adminDto, int worryFreeMoveSuiteConfigId);
		#endregion  成员方法
	}
}